package com.inspector.app.di.network.api

import com.example.commen.net.easyHttp.server.ReleaseServer
import com.hjq.http.config.IRequestApi

/**
 * 获取验证码
 */
class getSmsLoginCodeApi(phone: String) : ReleaseServer(), IRequestApi {
    override fun getApi(): String {
        return "/auth/v2/getSmsLoginCode"
    }

    private val phoneNum: String = phone

    /**
     * 验证码类型 登录login 忘记/修改密码lostPass 注册register 更改手机号changePhone
     */
    private val identity: String = "login"

}

/**
 * 获取验证码
 * post
 */
class getLoginPasswordApi(username: String, password: String) : ReleaseServer(), IRequestApi {
    override fun getApi(): String {
        return "/auth/v2/terminal/login"
    }

    /**用户名*/
    private val username: String = username

    /**
     * 密码
     */
    private val password: String = password

}